
const app = getApp();
Page({
    data: {
        current:0,
    },
    onLoad() {
        app.http.get(app.config.search.index,{
            requireLogin:false,
        }).then(res=>{
            this.setData({ loading: false, list: res.data });
        })
    },
    clickLeft(evt){
        this.setData({current:evt.currentTarget.dataset.index});
    }
});